<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <title>小说下载器</title>
    <style>
        body{
            padding: 10px;
        }
        #content{
            margin: 0px auto;
        }
        input{
            outline: 0px;
        }
        form{
            position: relative;
            width: 570px;
            margin: 0px auto;
            margin-top: 80px;
        }
        .filed input{
            width: 361px;
            height: 22px;
            font: 16px/18px arial;
            line-height: 22px\9;
            padding: 0;
            background: transparent;
            border: 0;
            outline: 0;
            -webkit-appearance: none;
        }
        .filed{
            border: 1px solid #b6b6b6;
            background: #fff;
            display: inline-block;
            vertical-align: top;
            margin-right: 0;
            overflow: hidden;
            padding: 6px 7px;
            position: relative;
            z-index: 1;
        }
        .label{
            margin-right: 20px;
        }
        .submit{
            display: inline-block;
            width: 100px;
            height: 37px;
            color: #fff;
            letter-spacing: 1px;
            background: #3385ff;
            border-bottom: 1px solid #2d78f4;
            outline: medium;
            -webkit-appearance: none;
            -webkit-border-radius: 0;
            border: 0px;
            line-height: 37px;
            padding: 0px;
            font-size: 16px;
            position: relative;
            z-index: 2;
            margin-left: -1px;
        }
        .submit:hover{
            background: #317ef3;
            border-bottom: 1px solid #2868c8;
            box-shadow: 1px 1px 1px #ccc;
        }
        .mobile .submit{
            margin-left: 0px;
            margin-top: 20px;
        }
        .mobile .filed{
            display: block;
            margin-top: 10px;
        }
        .mobile form{
            margin: 0px;
            width: auto;
        }
        .summary{
            color: #b9b9b9;
            margin-top: 50px;
            font-size: 14px;
        }
        .summary p{
            margin: 0px 0px 10px 0px;
        }
        textarea{
            width: 100%;
            height: 236px;
            margin-top: 20px;
            padding: 0px;
            box-sizing: border-box;
        }
    </style>
</head>
<body>
<div id="content">
    <form method="post" action="/getBook">
        <label class="label">来源地址:</label>
        <div class="filed">
            <input type="text" name="url" placeholder="请输入来源地址"/>
        </div><input type="submit" class="submit" value="提交"/>
        <div>
            <textarea name="op">
{
    "menu":".article-list a,.mulu a,.mulu_list a,#at a,#list a,.chapterlist a,#TabCss a,#chapterListPanel td a,.listmain a,#defaulthtml4 a,.dirbox a,#list-chapterAll a,.article_texttitleb a,#book_detail li a,#main .mulu dd a",
    "title":"h1",
    "titleMoreText":[" ","最新章节更新列表","\n","\r","笔下文学"],
    "content": "#htmlContent,.contentbox,#contents,#content,.yd_text2,#zjneirong,#chapterContent,#table_container,.yd_text2",
    "timeout": 6000,
    "loadMoreHtml": "div,a,script,h1,iframe,.footnote,ins",
    "menuMoreHtml":"i",
    "menuRule": [
        "重要通告"
    ],
    "contentReplace":["本书首发来自17k小说网，第一时间看正版内容！"]
}
            </textarea>
        </div>
        <div class="summary">
            <p>
                {
                    "titleText": "法师奥义",
                    "isRefresh":true
                }
            </p>
        </div>
        <div class="summary">

            <p>操作步骤：将需要下载小说的url复制到来源地址的文本框中，点击提交即可下载为txt文件，可使用熊猫看书在手机端带章节信息浏览。</p>
            <p>注意：来源地址是小说章节目录页面的地址，请勿使用起点网等需要付费阅读的网站为来源地址</p>
            <p>以下为亲测可以的网站</p>
            <p>
                <a href="http://www.bxwx3.org/">http://www.bxwx3.org/</a>
                <a href="http://www.xxbiquge.com/">http://www.xxbiquge.com/</a>
            </p>
            <p>栗子：<a href="http://www.bxwx3.org/txt/185304/">http://www.bxwx3.org/txt/185304/</a></p>
        </div>
    </form>

</div>
<script>
    function IsPC() {
        var userAgentInfo = navigator.userAgent;
        var Agents = ["Android", "iPhone",
            "SymbianOS", "Windows Phone",
            "iPad", "iPod"];
        var flag = true;
        for (var v = 0; v < Agents.length; v++) {
            if (userAgentInfo.indexOf(Agents[v]) > 0) {
                flag = false;
                break;
            }
        }
        return flag;
    }
    document.getElementById('content').className=IsPC()?'pc':'mobile'
</script>
</body>
</html>
